<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <title>我的帖子</title>
    <style>
    .seg{
        width: 80%;
        height: 2px;
        background-color: rgb(18, 247, 247);
        margin-left: 150px;
    }
    .posters{
        width: 100%;
        height: 152px;
        margin-top: 10px;
        display: block;
        text-align: center;
    }
    .userHead{
        width: 150px;
        height: 150px;
        float: left;
        display: block;
    }
    .userName{
        font-size: 16px;
        background-color: white;
    }
    .postText{
        height: 125px;
        overflow:scroll;
        display: block;
    }
    .unPosters{
        margin-top: 320px;
        text-align: center;
    }
        /* 切换页面 */
        ul.pagination {
        display: inline-block;
        padding: 0;
        margin: 0;
    }
    ul.pagination li {
        display: inline;
    }
    ul.pagination li a {
        color: black;
        float: left;
        padding: 8px 16px;
        text-decoration: none;
        transition: background-color .3s;
        border: 1px solid #ddd;
    }
    .pagination li:first-child a {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    .pagination li:last-child a {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }
    ul.pagination li a.active {
        background-color: #4CAF50;
        color: white;
        border: 1px solid #4CAF50;
    }
    ul.pagination li a:hover:not(.active) {
        background-color: #ddd;
    }
    </style>
</head>
<body>
    <!-- 全部帖子 -->
    <div class="posters">
        <!-- 单个帖子 -->
        <div class="poster">
            <div class="seg"></div>
            <div class="userHead">
                <img src="https://gitee.com/konjac_wjh/pig-go/raw/master/img/user.png" alt="user" style="width: 50px;">
                <div class="userName">用户名</div>
            </div>
            <div class="text01">
                <div class="postTitle">标题
                </div>
                <div class="seg"></div>
                <div class="postText">内容1<br>内容2</div>
            </div>
        </div>
        <!-- 第二个帖子 -->
        <div class="poster">
            <div class="seg"></div>
            <div class="userHead">
                <img src="https://gitee.com/konjac_wjh/pig-go/raw/master/img/user.png" alt="user" style="width: 50px;">
                <div class="userName">用户名</div>
            </div>
            <div class="text01">
                <div class="postTitle">标题
                </div>
                <div class="seg"></div>
                <div class="postText">内容1<br>内容2</div>
            </div>
        </div>
        <div class="poster">
            <div class="seg"></div>
            <div class="userHead">
                <img src="https://gitee.com/konjac_wjh/pig-go/raw/master/img/user.png" alt="user" style="width: 50px;">
                <div class="userName">用户名</div>
            </div>
            <div class="text01">
                <div class="postTitle">标题
                </div>
                <div class="seg"></div>
                <div class="postText">内容1<br>内容2</div>
            </div>
        </div>
    </div>
    <br>
    <div class="unPosters">
        <!-- 页码 -->
        <div class="page">
            <div class="seg"></div>
            <ul class="pagination">
                <li><a href="#">«</a></li>
                <li><a href="#" class="active" >1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">6</a></li>
                <li><a href="#">7</a></li>
                <li><a href="#">»</a></li>
            </ul>
        </div>
    </div>
</body>
</html>